package com.mz.mattress.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mz.mattress.api.common.BaseEntity;
import lombok.Data;

@Data
@TableName("mz_order_use_times_bonus")
public class OrderUseTimesBonus extends BaseEntity {

    private Integer id;

    //订单使用次数Id
    private Integer recordId;

    //订单id
    private Long orderId;

    //月
    private String months;

    //天
    private String dates;

    //类型 0平台 1商家 2销售 3子销售 4投资商
    private Integer type;

    //类型对应商家销售ID  查某个门店 用typeId
    private Integer typeId;

    //消费所在商家Id
    private Integer merchantId;

    //商家名称
    private String merchantName;

    //收佣金 会员id  查全部，用会员ID
    private Long memberId;

    //姓名
    private String name;

    //手机号
    private String mobile;

    //总金额 分
    private Integer totalMoney;

    //得到金额 分
    private Integer bonus;

    //商家等级
    private Integer grade;

    //佣金比例 百分之几
    private Integer bonusRatio;

    //是否已发放 0未发放 1已发放
    private Integer done;

    //总价金额
    @TableField(exist = false)
    private Integer sumBonus;

}
